/**
 * <pre>
 * Title: 		AnteSysPara.java
 * Author:		linriqing
 * Create:	 	2009-6-11 下午03:44:43
 * Copyright: 	Copyright (c) 2009
 * Company:		Shenzhen Helper
 * <pre>
 */
package com.hengpeng.common.configuration.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.hengpeng.common.persist.entity.AbstractEntity;
import com.hengpeng.common.persist.entity.AuditedEntity;
import com.hengpeng.common.web.annotation.HtmlInput;
import com.hengpeng.common.web.annotation.HtmlInputType;

/**
 * <pre>
 * 系统参数
 * </pre>
 * @author linriqing
 * @version 1.0, 2009-6-11
 */
@Entity
@Table(name = "AnteSysPara")
public class AnteSysPara extends AbstractEntity implements AuditedEntity
{
	public AnteSysPara()
	{
	}

	private static final long serialVersionUID = -5111295384289628826L;

	/**
	 * 系统参数描述
	 */
	@Column(length = 255)
	@HtmlInput(label = "描述", type = HtmlInputType.TEXTAREA, index = 3, nullable = true)
	private java.lang.String paraDesc;

	/**
	 * 系统参数名称
	 */
	@Id
	@Column(length = 100, nullable = false)
	@HtmlInput(label = "参数名称", type = HtmlInputType.ID, index = 1, nullable = false)
	private java.lang.String paraKey;

	/**
	 * 系统参数值
	 */
	@Column(length = 1000)
	@HtmlInput(label = "参数值", type = HtmlInputType.TEXT, index = 2, nullable = false)
	private java.lang.String paraValue;

	/**
	 * 构造函数
	 * @param paraKey 系统参数名
	 * @param paraValue 系统参数值
	 */
	public AnteSysPara(String paraKey, String paraValue)
	{
		super();
		this.paraKey = paraKey;
		this.paraValue = paraValue;
	}

	/**
	 * 构造函数
	 * @param paraKey 系统参数名
	 * @param paraValue 系统参数值
	 * @param paraDesc 系统参数描述
	 */
	public AnteSysPara(String paraKey, String paraValue, String paraDesc)
	{
		super();
		this.paraDesc = paraDesc;
		this.paraKey = paraKey;
		this.paraValue = paraValue;
	}

	@Override
	public Object getId()
	{
		return this.paraKey;
	}

	/**
	 * @return 系统参数描述
	 */
	public java.lang.String getParaDesc()
	{
		return paraDesc;
	}

	/**
	 * @return 系统参数名称
	 */
	public java.lang.String getParaKey()
	{
		return paraKey;
	}

	/**
	 * @return 系统参数值
	 */
	public java.lang.String getParaValue()
	{
		return paraValue;
	}

	/**
	 * @param paraDesc 系统参数描述
	 */
	public void setParaDesc(java.lang.String paraDesc)
	{
		this.paraDesc = paraDesc;
	}

	/**
	 * @param paraKey 系统参数名称
	 */
	public void setParaKey(java.lang.String paraKey)
	{
		this.paraKey = paraKey;
	}

	/**
	 * @param paraValue 系统参数值
	 */
	public void setParaValue(java.lang.String paraValue)
	{
		this.paraValue = paraValue;
	}
}
